import random

import matplotlib.pyplot as plt
from matplotlib import font_manager

my_font = font_manager.FontProperties(fname="STSONG.TTF")

a = [random.randint(20,35) for i in range(120)]
plt.figure(figsize=(20,8),dpi=80)

b = range(0,120)


plt.plot(b,a)
_x_ticks = ["10点%d分"%(i) for i in range(0,60)]
_y_ticks = ["11点%d分"%(i) for i in range(0,60)]
c = _x_ticks + _y_ticks
plt.xticks(list(b)[::3],c[::3],rotation=270,fontproperties=my_font)
plt.show()


